import request from '@/util/request'

export default {
    searchR(page, pageSize, data) {
        return request({
            url: `/reader/search/${page}/${pageSize}`,
            method: "post",
            data
        })
    },

    deleteR(drid){
        return request({
            url: `/reader/delete/${drid}`,
            method: 'delete',
        })
    },

    addR(data){
        return request({
            url: '/reader/add',
            method: 'post',
            data
        })
    },

    updateR(data){
        return request({
            url: '/reader/update',
            method: 'put',
            data
        })
    },
}